package com.ifp.opengate.boot.bean;

public class MonitorBean {
    /*商户号*/
    private String merchantNo;
    /*商户名称*/
    private String merchantName;
    /*应用Id*/
    private String appId;
    /*应用名称*/
    private String appName;
    /*产品编号*/
    private String prodNo;
    /*产品名称*/
    private String prodName;
    /*产品分类*/
    private String prodTypeId;
    /*分类名称*/
    private String prodTypeName;
    /*API编号*/
    private String openApiId;
    /*版本号*/
    private String openApiVersion;
    /*调用接口号*/
    private String apiId;
    /*调用所属系统*/
    private String system;
    /*API名称*/
    private String apiName;
    /*内联、外联*/
    private String reqDirection;
    /*系统版本号*/
    private String systemVersion;

    public String getSystemVersion() {
        return systemVersion;
    }

    public void setSystemVersion(String systemVersion) {
        this.systemVersion = systemVersion;
    }

    public String getReqDirection() {
        return reqDirection;
    }

    public void setReqDirection(String reqDirection) {
        this.reqDirection = reqDirection;
    }

    public MonitorBean(AppBean app, ApiBean apiBean) {
        if (apiBean != null) {
            this.apiId = apiBean.getApiId();
            this.apiName = apiBean.getApiName();
            this.openApiId = apiBean.getOpenApiId();
            this.openApiVersion = apiBean.getOpenApiVersion();
            this.system = apiBean.getSystem();
            this.prodNo = apiBean.getProdNo();
            this.prodName = apiBean.getProdName();
            this.prodTypeId = apiBean.getProdTypeId();
            this.prodTypeName = apiBean.getProdTypeName();
            this.reqDirection = apiBean.getReqDirection();
            this.systemVersion = apiBean.getSystemVersion();
        }
        if (app != null) {
            this.appId = app.getAppId();
            this.merchantNo = app.getMerchantNo();
            this.merchantName = app.getMerchantName();
            this.appName = app.getAppName();

        }
    }

    public String getMerchantNo() {
        return merchantNo;
    }

    public void setMerchantNo(String merchantNo) {
        this.merchantNo = merchantNo;
    }

    public String getMerchantName() {
        return merchantName;
    }

    public void setMerchantName(String merchantName) {
        this.merchantName = merchantName;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getAppName() {
        return appName;
    }

    public void setAppName(String appName) {
        this.appName = appName;
    }

    public String getProdNo() {
        return prodNo;
    }

    public void setProdNo(String prodNo) {
        this.prodNo = prodNo;
    }

    public String getProdName() {
        return prodName;
    }

    public void setProdName(String prodName) {
        this.prodName = prodName;
    }

    public String getProdTypeId() {
        return prodTypeId;
    }

    public void setProdTypeId(String prodTypeId) {
        this.prodTypeId = prodTypeId;
    }

    public String getProdTypeName() {
        return prodTypeName;
    }

    public void setProdTypeName(String prodTypeName) {
        this.prodTypeName = prodTypeName;
    }

    public String getOpenApiId() {
        return openApiId;
    }

    public void setOpenApiId(String openApiId) {
        this.openApiId = openApiId;
    }

    public String getOpenApiVersion() {
        return openApiVersion;
    }

    public void setOpenApiVersion(String openApiVersion) {
        this.openApiVersion = openApiVersion;
    }

    public String getApiId() {
        return apiId;
    }

    public void setApiId(String apiId) {
        this.apiId = apiId;
    }

    public String getSystem() {
        return system;
    }

    public void setSystem(String system) {
        this.system = system;
    }

    public String getApiName() {
        return apiName;
    }

    public void setApiName(String apiName) {
        this.apiName = apiName;
    }
}
